package com.ruoyi.index.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 大盘指数信息对象 market_index
 * 
 * @author shenke
 * @date 2025-08-31
 */
public class MarketIndex extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键字段（无业务意义） */
    private Long id;

    /** 大盘ID */
    @Excel(name = "大盘ID")
    private String markId;

    /** 当前时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "当前时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date curTime;

    /** 指数名称 */
    @Excel(name = "指数名称")
    private String markName;

    /** 当前点数 */
    @Excel(name = "当前点数")
    private BigDecimal curPoint;

    /** 当前价格 */
    @Excel(name = "当前价格")
    private BigDecimal currentPrice;

    /** 涨跌率 */
    @Excel(name = "涨跌率")
    private BigDecimal updownRate;

    /** 成交量（多少手） */
    @Excel(name = "成交量", readConverterExp = "多=少手")
    private Long tradeAccount;

    /** 成交额(万元) */
    @Excel(name = "成交额(万元)")
    private Long tradeVolume;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setMarkId(String markId) 
    {
        this.markId = markId;
    }

    public String getMarkId() 
    {
        return markId;
    }

    public void setCurTime(Date curTime) 
    {
        this.curTime = curTime;
    }

    public Date getCurTime() 
    {
        return curTime;
    }

    public void setMarkName(String markName) 
    {
        this.markName = markName;
    }

    public String getMarkName() 
    {
        return markName;
    }

    public void setCurPoint(BigDecimal curPoint) 
    {
        this.curPoint = curPoint;
    }

    public BigDecimal getCurPoint() 
    {
        return curPoint;
    }

    public void setCurrentPrice(BigDecimal currentPrice) 
    {
        this.currentPrice = currentPrice;
    }

    public BigDecimal getCurrentPrice() 
    {
        return currentPrice;
    }

    public void setUpdownRate(BigDecimal updownRate) 
    {
        this.updownRate = updownRate;
    }

    public BigDecimal getUpdownRate() 
    {
        return updownRate;
    }

    public void setTradeAccount(Long tradeAccount) 
    {
        this.tradeAccount = tradeAccount;
    }

    public Long getTradeAccount() 
    {
        return tradeAccount;
    }

    public void setTradeVolume(Long tradeVolume) 
    {
        this.tradeVolume = tradeVolume;
    }

    public Long getTradeVolume() 
    {
        return tradeVolume;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("markId", getMarkId())
            .append("curTime", getCurTime())
            .append("markName", getMarkName())
            .append("curPoint", getCurPoint())
            .append("currentPrice", getCurrentPrice())
            .append("updownRate", getUpdownRate())
            .append("tradeAccount", getTradeAccount())
            .append("tradeVolume", getTradeVolume())
            .toString();
    }
}
